package com.iflytek.universitymanagement.controller;


import com.iflytek.universitymanagement.domain.PsychologicalAssessment;
import com.iflytek.universitymanagement.service.PsychologicalAssessmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@RestController
@RequestMapping("/api/psychologicalAssessment")
public class PsychologicalAssessmentController {


    @Autowired
    private PsychologicalAssessmentService psychologicalAssessmentService;

    @GetMapping("/assessments")
    public ResponseEntity<List<PsychologicalAssessment>> getAllAssessments() {
        return ResponseEntity.ok(psychologicalAssessmentService.listAll());
    }
}
